package system;

class Student {
	private String id;
    private String name;

    public Student(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void applyLeave(int days) {
        System.out.println(name + " (Student) applied for " + days + " days of leave.");
    }
}
class Teacher {
	private String id;
    private String name;

    public Teacher(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void approveLeave(String studentId, int days) {
        System.out.println(name + " (Teacher) approved " + days + " days of leave for student " + studentId + ".");
    }

    public void rejectLeave(String studentId, int days) {
        System.out.println(name + " (Teacher) rejected " + days + " days of leave for student " + studentId + ".");
    }
}
class Counselor {
    private String id;
    private String name;

    public Counselor(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void recordLeave(String studentId, int days) {
        System.out.println(name + " (Counselor) recorded " + days + " days of leave for student " + studentId + ".");
    }
}